const merge = require("webpack-merge")
const common = require("./webpack.common.js")
const webpack = require("webpack")
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;   //  打包分析插件
module.exports = merge(common, {
    mode: "production",
    plugins: [
        new BundleAnalyzerPlugin({
            analyzerHost: '127.0.0.1',
            analyzerPort: 3000,
            openAnalyzer: true
        })
    ]
})